import request from '@/utils/request'

// 查询 药物对应基因与位点列表
export function listDrugInteraction(query) {
  return request({
    url: '/gene-face/zskDrugInteraction/list',
    method: 'get',
    params: query
  })
}

// 查询 药物对应基因与位点详细
export function getDrugInteraction(id) {
  return request({
    url: '/gene-face/zskDrugInteraction/' + id,
    method: 'get'
  })
}

// 保存 药物对应基因与位点
export function saveDrugInteraction(data) {
  return request({
    url: '/gene-face/zskDrugInteraction',
    method: 'post',
    data: data
  })
}

// 删除 药物对应基因与位点
export function delDrugInteraction(ids) {
  return request({
    url: '/gene-face/zskDrugInteraction/' + ids,
    method: 'delete'
  })
}
